export
let text:string = '三笠';
console.log(text);

let syaname = (a:number,b?:number,...rest:[number,string,number]):string=>{
  console.log(a,b,rest);
  return '返回值';
}

let syaname1:(a:number,b?:number,...rest:[number,string,string])=>number = (a,b,...rest)=>{
  console.log(a,b,rest);
  return a;
}


let syaname2:(a:number,b?:string,...rest:[number,string,string])=>string|undefined = (a,b,...rest)=>{
  console.log();
  // return rest.split(",").reverse().join('');
  b?.split('').reverse().join('')
  return b
}

console.log(syaname2(1,'shima',3,'代码','是吗'));
function mySay () {

} 


//重载
